/**
 * Created by jiangtao on 2017/5/24.
 */

import React from 'react'

import LazyRoute from "lazy-route";

import { Redirect } from 'react-router-dom';

import NotFound from '../../views/404/index'

const routers = [
    {
        path: '/',
        component:  <NotFound/>,
        children: [

        ]
    },
    {
        path: '/',
        component: <Redirect to="/topcs/all/1"/>,
        children: [

        ]
    },
    // {
    //     path: '/topcs/*',
    //     component: <Redirect to="/topcs/all/1"/>,
    //     children: [
    //
    //     ]
    // },
    // {
    //     path: '/topcs/*/*',
    //     component: <Redirect to="/topcs/all/1"/>,
    //     children: [
    //
    //     ]
    // },
    {
        path: '/topcs/:category/:page',
        component: <LazyRoute component={import("./../../views/pc/home/home.js")} />,
        children: [

        ]
    },
    {
        path: '/detail/:id',
        component: <LazyRoute component={import("./../../views/pc/home/detail.js")} />,
        children: [

        ]
    }
];


export default routers;